package com.xoa.dao.portalArticle;

import com.xoa.model.portalArticle.PortalArticle;
import com.xoa.model.portalArticle.PortalArticleExample;
import com.xoa.model.portalArticle.PortalArticleWithBLOBs;
import java.util.List;
import java.util.Map;

import com.xoa.model.portalTemplate.PortalTemplate;
import com.xoa.model.portalTemplate.PortalTemplateWithBLOBs;
import com.xoa.util.ToJson;
import org.apache.ibatis.annotations.Param;

public interface PortalArticleMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int countByExample(PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int deleteByExample(PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(Integer articleId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int insert(PortalArticleWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int insertSelective(PortalArticleWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    List<PortalArticleWithBLOBs> selectByExampleWithBLOBs(PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    List<PortalArticle> selectByExample(PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    PortalArticleWithBLOBs selectByPrimaryKey(Integer articleId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") PortalArticleWithBLOBs record, @Param("example") PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") PortalArticleWithBLOBs record, @Param("example") PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") PortalArticle record, @Param("example") PortalArticleExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(PortalArticleWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByPrimaryKeyWithBLOBs(PortalArticleWithBLOBs record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table portal_article
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(PortalArticleWithBLOBs record);

    List<PortalArticleWithBLOBs> selectPortalArticle(PortalArticleWithBLOBs portalArticleWithBLOBs);

    int delPortalArticle(Integer[] ids);

    List<PortalArticleWithBLOBs> columnExpandArticle(Integer sid);

    List<PortalArticleWithBLOBs> getDocByChannelId(Map param);

    List<PortalArticleWithBLOBs> selectArticeByColumnMarks(Map param);


}